#!/usr/bin/env python
#coding=utf-8
#author=xiaomayi0323
#date=2009/03/26
#filename=5-4

def leap_year():
    while True:
        x = int(raw_input('enter year:'))
        if x % 4 == 0 and x % 100 != 0:
            print "%d is leap year" % x
        elif x % 4 == 0 and x % 400 == 0:
            print "%d is leap year" % x
        else:
            return "%d is not leap year" % x
        
print leap_year()



